package dao

import (
	"time"
)

// 这是 LiOrderComplaint 的全局公开dao对象
var LiOrderComplaintDao = liOrderComplaintDao{}

// 这是 li_order_complaint表 的实体类
type LiOrderComplaint struct {
	Id                   int       `json:"id" form:"id" v:"id"`                                                             // ID
	CreateBy             string    `json:"create_by" form:"create_by" v:"create_by"`                                        // 创建者
	CreateTime           time.Time `json:"create_time" form:"create_time" v:"create_time"`                                  // 创建时间
	DeleteFlag           bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`                 // 删除标志 true/false 删除/未删除
	UpdateBy             string    `json:"update_by" form:"update_by" v:"update_by"`                                        // 更新者
	UpdateTime           time.Time `json:"update_time" form:"update_time" v:"update_time"`                                  // 更新时间
	AppealContent        string    `json:"appeal_content" form:"appeal_content" v:"appeal_content"`                         // 申诉商家内容
	AppealImages         string    `json:"appeal_images" form:"appeal_images" v:"appeal_images"`                            // 申诉商家上传的图片
	AppealTime           time.Time `json:"appeal_time" form:"appeal_time" v:"appeal_time"`                                  // 申诉商家时间
	ArbitrationResult    string    `json:"arbitration_result" form:"arbitration_result" v:"arbitration_result"`             // 仲裁结果
	ComplainStatus       string    `json:"complain_status" form:"complain_status" v:"complain_status"`                      // 交易投诉状态
	ComplainTopic        string    `json:"complain_topic" form:"complain_topic" v:"complain_topic"`                         // 投诉主题
	ConsigneeAddressPath string    `json:"consignee_address_path" form:"consignee_address_path" v:"consignee_address_path"` // 收货地址
	ConsigneeMobile      string    `json:"consignee_mobile" form:"consignee_mobile" v:"consignee_mobile"`                   // 收货人手机
	ConsigneeName        string    `json:"consignee_name" form:"consignee_name" v:"consignee_name"`                         // 收货人
	Content              string    `json:"content" form:"content" v:"content"`                                              // 投诉内容
	FreightPrice         float64   `json:"freight_price" form:"freight_price" v:"freight_price"`                            // 运费
	GoodsId              string    `json:"goods_id" form:"goods_id" v:"goods_id"`                                           // 商品ID
	GoodsImage           string    `json:"goods_image" form:"goods_image" v:"goods_image"`                                  // 商品图片
	GoodsName            string    `json:"goods_name" form:"goods_name" v:"goods_name"`                                     // 商品名称
	GoodsPrice           float64   `json:"goods_price" form:"goods_price" v:"goods_price"`                                  // 商品价格
	Images               string    `json:"images" form:"images" v:"images"`                                                 // 投诉凭证图片
	LogisticsNo          string    `json:"logistics_no" form:"logistics_no" v:"logistics_no"`                               // 物流单号
	MemberId             string    `json:"member_id" form:"member_id" v:"member_id"`                                        // 会员ID
	MemberName           string    `json:"member_name" form:"member_name" v:"member_name"`                                  // 会员名称
	Num                  int       `json:"num" form:"num" v:"num"`                                                          // 购买的商品数量
	OrderPrice           float64   `json:"order_price" form:"order_price" v:"order_price"`                                  // 订单金额
	OrderSn              string    `json:"order_sn" form:"order_sn" v:"order_sn"`                                           // 订单编号
	OrderTime            time.Time `json:"order_time" form:"order_time" v:"order_time"`                                     // 下单时间
	StoreId              string    `json:"store_id" form:"store_id" v:"store_id"`                                           // 店铺ID
	StoreName            string    `json:"store_name" form:"store_name" v:"store_name"`                                     // 店铺名称
	SkuId                string    `json:"sku_id" form:"sku_id" v:"sku_id"`                                                 // 货品ID

}

// 注意:这是 LiOrderComplaint 的私有dao对象
type liOrderComplaintDao struct {
	Insert func(arg LiOrderComplaint) int              //插入一条记录
	Update func(arg LiOrderComplaint) int              //更新一条记录
	Delete func(arg LiOrderComplaint) int              //删除一条记录
	Select func(arg LiOrderComplaint) LiOrderComplaint //获取一条记录
}
